package com.wty.gw.util;

/**
 * Created by root on 2018-01-10.
 */
public class PageParamReq {
    //当前页码(默认第1页)
    private int pageNo = 1;
    //每页显示条数(默认20)
    private int pageSize = 20;
    //sql分页查询时使用
    private int start;

    public int getPageNo() {
        return pageNo;
    }
    public void setPageNo(int pageNo) {
        this.pageNo = pageNo;
    }
    public int getPageSize() {
        return pageSize;
    }
    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }
    public int getStart() {
        start = (pageNo >= 1)?(pageNo-1)*pageSize:0;
        return start;
    }
}
